package com.kmust.dream.wanderingdream.shoppingcart.controller;

import com.kmust.dream.wanderingdream.comm.pojo.ResultBean;
import com.kmust.dream.wanderingdream.shoppingcart.service.ShoppingCartItemService;
import com.kmust.dream.wanderingdream.shoppingcart.vo.SciOrderPreVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/shop/sciOrder")
public class ShoppingCartItemCreateOrderController {

    @Autowired
    private ShoppingCartItemService shoppingCartItemService;

    @PostMapping("/createOrder")
    public ResultBean createOrder(@RequestBody SciOrderPreVO sciOrderPreVO) {
        return shoppingCartItemService.createOrder(sciOrderPreVO);
    }

}
